import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

/**
 * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI
 * Builder, which is free for non-commercial use. If Jigloo is being used
 * commercially (ie, by a corporation, company or business for any purpose
 * whatever) then you should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details. Use of Jigloo implies
 * acceptance of these licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN
 * PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED LEGALLY FOR
 * ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class Router extends javax.swing.JFrame
{
	private JPanel jPanel1;
	private JLabel Mon;
	private JLabel endTime;
	private JLabel Sun;
	private JLabel Sat;
	private JLabel Fri;
	private JLabel Thu;
	private JLabel Wed;
	private JLabel Tue;
	private JLabel startTime;
	private int driverId;

	/**
	 * Auto-generated main method to display this JFrame
	 */
	public static void main(String[] args)
	{
		SwingUtilities.invokeLater(new Runnable()
		{

			public void run()
			{

				Router inst = new Router();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}

	public Router()
	{
		super();
		setTitle("Router");
		initGUI();
	}

	private void initGUI()
	{
		try
		{
			driverId = GUI.getDriverID();
			System.out.println(driverId);
			getContentPane().setLayout(null);
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setLayout(null);
				jPanel1.setBounds(5, 0, 345, 270);
				{
					startTime = new JLabel();
					jPanel1.add(startTime);
					GridLayout startTimeLayout = new GridLayout(1, 1);
					startTimeLayout.setHgap(5);
					startTimeLayout.setVgap(5);
					startTimeLayout.setColumns(1);
					startTime.setLayout(startTimeLayout);
					startTime.setText("Start time:");
					startTime.setBounds(89, -4, 92, 28);
				}
				{
					Mon = new JLabel();
					jPanel1.add(Mon);
					Mon.setText("Mon");
					Mon.setBounds(7, 16, 78, 29);
					Mon.setFont(new java.awt.Font("Arial", 1, 16));
				}
				{
					Tue = new JLabel();
					jPanel1.add(Tue);
					Tue.setText("Tue");
					Tue.setFont(new java.awt.Font("Arial", 1, 16));
					Tue.setBounds(7, 51, 78, 29);
				}
				{
					Wed = new JLabel();
					jPanel1.add(Wed);
					Wed.setText("Wed");
					Wed.setFont(new java.awt.Font("Arial", 1, 16));
					Wed.setBounds(7, 86, 78, 29);
				}
				{
					Thu = new JLabel();
					jPanel1.add(Thu);
					Thu.setText("Thu");
					Thu.setFont(new java.awt.Font("Arial", 1, 16));
					Thu.setBounds(7, 121, 78, 29);
				}
				{
					Fri = new JLabel();
					jPanel1.add(Fri);
					Fri.setText("Fri");
					Fri.setFont(new java.awt.Font("Arial", 1, 16));
					Fri.setBounds(7, 156, 78, 29);
				}
				{
					Sat = new JLabel();
					jPanel1.add(Sat);
					Sat.setText("Sat");
					Sat.setFont(new java.awt.Font("Arial", 1, 16));
					Sat.setBounds(7, 191, 78, 29);
				}
				{
					Sun = new JLabel();
					jPanel1.add(Sun);
					Sun.setText("Sun");
					Sun.setFont(new java.awt.Font("Arial", 1, 16));
					Sun.setBounds(7, 222, 78, 29);
				}
				{
					endTime = new JLabel();
					jPanel1.add(endTime);
					endTime.setText("End time:");
					endTime.setBounds(209, 0, 95, 22);
				}
			}
			pack();
			this.setSize(360, 296);
		} catch (Exception e)
		{
			// add your error handling code here
			e.printStackTrace();
		}
	}

}
